// 合同审批记录
<template>
    <div class="contractChange">
        <div class="title">审核记录</div>
        <el-table :data="tableData" style="width: 100%">
            <el-table-column prop="createTime" label="审核时间" width="300" align="center"/>
            <el-table-column prop="createName" label="审核人" width="300" align="center"/>
            <!--<el-table-column prop="remarks" label="审核结果" align="center"/>-->
            <el-table-column prop="remarks" label="审核意见" align="center"/>
        </el-table>
    </div>
</template>

<script>
    import {getContractApproveList} from '@/views/rent/api/rent-contract.js'

    export default {
        name: 'contract-approve',
        data() {
            return {
                tableData: []
            }
        },

        mounted:function(){
            //this.loadApproveList();
        },

        methods:{
            //加载列表
            loadApproveList(contractId){
                //alert("11");
                let rentContractId=contractId;//this.$route.query.id;
                let category = 2
                //alert(rentContractId);
                getContractApproveList(rentContractId,category)
                    .then(response=> {
                            //alert(JSON.stringify(response));
                            if (response.data.code == 0) {
                                this.tableData = response.data.data;
                            }
                            else {
                                this.$alert("加载变更记录服务端服务错误" + response.code);
                            }
                        }
                    )

            }
        }
    }
</script>

<style lang="scss" scoped>
    .contractChange{
        .title{
            font-size: 16px;
            font-weight: bold;
            margin:10px 0 20px;
            color: #333;
        }
        /deep/ .el-table{
            .el-table__header{
                border-color: #dee2e6;
            }
            thead th{
                background-color: #FAFAFA;
                color: #333;
            }
            td{
                padding: 10px 0;
            }
        }
    }
</style>
